<div class="subnav">
    <ul class="subnav-menu">

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_INICIO'))) { ?>
            <li class="<?php echo ($sf_context->getModuleName() == 'home' ? 'current' : ''); ?>"><span class="pm_icon_ini"></span><a href="<?php echo url_for('home/index'); ?>?id=<?php echo $_GET['id'];?>">inicio</a></li> <?php } ?>

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_LOCALES'))) { ?>    
            <li class="<?php echo ($sf_context->getModuleName() == 'stores' ? 'current' : ''); ?>"><span class="pm_icon_loc"></span><a href="<?php echo url_for('stores/index'); ?>?id=<?php echo $_GET['id'];?>">locales</a></li> <?php } ?>

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_INFORMACION'))) { ?>
            <li class="<?php echo ($sf_context->getModuleName() == 'information' ? 'current' : ''); ?>"><span class="pm_icon_inf"></span><a href="<?php echo url_for('information/index'); ?>?id=<?php echo $_GET['id'];?>">info</a></li> <?php } ?>

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_CHECKLIST'))) { ?>
            <li class="<?php echo ($sf_context->getModuleName() == 'checklist' ? 'current' : ''); ?>"><span class="pm_icon_chk"></span><a href="<?php echo url_for('checklist/index'); ?>?id=<?php echo $_GET['id'];?>">check list</a></li> <?php } ?>

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_PRECIOS'))) { ?>
            <li class="<?php echo ($sf_context->getModuleName() == 'prices' ? 'current' : ''); ?>"><span class="pm_icon_prc"></span><a href="<?php echo url_for('prices/index'); ?>?id=<?php echo $_GET['id'];?>">precios</a></li> <?php } ?>

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_PROMOCIONES'))) { ?>
            <li class="<?php echo ($sf_context->getModuleName() == 'promotions' ? 'current' : ''); ?>"><span class="pm_icon_pro"></span><a href="<?php echo url_for('promotions/index'); ?>?id=<?php echo $_GET['id'];?>">promos</a></li> <?php } ?>

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_NOTAS'))) { ?>
            <li class="<?php echo ($sf_context->getModuleName() == 'notes' ? 'current' : ''); ?>"><span class="pm_icon_not"></span><a href="<?php echo url_for('notes/index'); ?>?id=<?php echo $_GET['id'];?>">notas</a></li> <?php } ?>

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_EQUIPOS'))) { ?>
            <li class="<?php echo ($sf_context->getModuleName() == 'staff' ? 'current' : ''); ?>"><span class="pm_icon_eqp"></span><a href="<?php echo url_for('staff/index'); ?>?id=<?php echo $_GET['id'];?>">equipo</a></li> <?php } ?>

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_FOTOS'))) { ?>
            <li class="<?php echo ($sf_context->getModuleName() == 'photos' ? 'current' : ''); ?>"><span class="pm_icon_fts"></span><a href="<?php echo url_for('pruebas/index'); ?>?id=<?php echo $_GET['id'];?>">fotos</a></li> <?php } ?>

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_CATALOGOS'))) { ?>
            <li class="<?php echo ($sf_context->getModuleName() == 'catalog' ? 'current' : ''); ?>"><span class="pm_icon_cat"></span><a href="<?php echo url_for('catalog/index'); ?>?id=<?php echo $_GET['id'];?>">catálogos</a></li> <?php } ?>

        <?php if (myCapability::testcap($caps, myCapability::C('CAP_M_ADMIN'))) { ?>
            <li class="<?php echo ($sf_context->getModuleName() == 'admin' ? 'current' : ''); ?>"><span class="pm_icon_adm"></span><a href="<?php echo url_for('admin/index'); ?>">Administrador</a></li> <?php } ?>

            <li class="<?php echo ($sf_context->getModuleName() == 'pruebas' ? 'current' : ''); ?>"><span class="pm_icon_fts"></span><a href="<?php echo url_for('pruebas/index'); ?>?id=<?php echo $_GET['id'];?>">fotos</a></li>
            
    </ul>
</div>
